package com.ktjy.springredis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.springredis.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * @return 13141
 * 2025/7/14
 * 16:19
 */
public interface RoleMapper extends BaseMapper<Role> {
    // 增删改查
    public int insert(Role role);

    public int delete(Long id);

    public int update(Role role);

    public Role get(Long id);

    public List<Role> findAll();

    // 分页
    public IPage<Role> getRoleByPage(Page<Role> page, @Param("map") HashMap<String, Object> hashMap);
}
